Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add unit tests to claudeAi service #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mbarzeev
Copy link

@mbarzeev mbarzeev commented Aug 4, 2024

No description provided.

require('dotenv').config();

const anthropic = new Anthropic({
apiKey: process.env['ANTHROPIC_API_KEY'], // This is the default and can be omitted
});


async function generateClaudeContent(content, model_type = "claude-3-5-sonnet-20240620") {
Copy link
Author

@mbarzeev mbarzeev Aug 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that you're not using the model_type arg at all, so I fixed that

Copy link
Collaborator

@maizoharil maizoharil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matti you are the best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants